/* jshint esversion: 6 */
const Router = require('koa-router');
const router = new Router();
const {db, Op, QueryTypes} = require("../../models/db");
// 修改密码
router.post('/user/getAllMenu', async ctx => {
    // 从租户的菜单中取
    try {
        let list = await db.models['menuV5'].findAll()
        return ctx.suc('', list)
    }
    catch (e) {
        return ctx.err('菜单取回失败')
    }
})


module.exports = router;